import java.util.Scanner;

class lab62{
	public static void main(String arg[]){
	
	String a;
	Scanner scan=new Scanner(System.in);
	System.out.print("Please input name :");
	a=scan.nextLine();
	
	for(int i=(a.length()-1);i>=0;i--)
	{
	  System.out.print(a.charAt(i));
	}
      }
    }